{include 'common/header.html'}
<body>
<!-- header -->
<header>
<ul>
<li><a href="/" style="z-index: 50;">首页</a></li>
<li><a style="z-index: 49;cursor: pointer;">会员中心</a></li>
</ul>
</header>

<div id="main">

{if($user_info)}

<div id="subtitle">个人资料</div>
<div id="box">
<p style="font-size: 1.5em;margin: 6px 1em;">{if(checkVip($user_info['vip']))}
<img src="/Application/static/pic/vip.png" alt="VIP" title="VIP" />
{/if}{$user_info['user']}<span style="font-size: 12px;color: red;margin-left: 3px;letter-spacing: 1px;vertical-align: top;">
({$user_info['id']})</span></p>
<p style="margin: 2px;">签名：<span>{$user_info['signature']}</span></p>
<p style="margin: 2px;">Tel：<span>{$user_info['tell']}</span></p>
<p style="margin: 2px;">QQ：<span>{$user_info['qq']}</span></p>
<p style="margin: 2px;">Email：<span>{$user_info['email']}</span></p>
<p style="margin: 2px;">话题：<span>{$user_info['topic_total']}</span>个</p>
<p style="margin: 2px;">注册时间：<span>{F:dateFormat($user_info['rtime'])}</span></p>
<p style="margin: 2px;">上次登录：<span>{F:dateFormat($user_info['logintime'])}</span></p>
<p style="margin: 2px;">权限等级：<span>{$user_info['authlv']}</span></p>
{if(checkVip($user_info['vip']))}
<p style="margin: 2px;">VIP状态：<span>开启中</span></p>
<p style="margin: 2px;">到期时间：<span style="color: red;">{F:date('Y-m-d H:i:s',$user_info['vip'])}</span></p>
{else}
<p style="margin: 2px;">VIP状态：<span>已关闭</span></p>
{/if}
<p style="margin: 2px;">金币：<span>{$user_info['money']}</span></p>
</div>
{if($user_info['id']==$login_user['id'])}
<div id="subtitle">功能支持</div>
<div id="box">
<ul id="list">
<li><a href="{$this->urlCreate('shop','vip')}">购买VIP</a></li>

</ul>
</div>
{/if}

<div id="subtitle">操作选项</div>
<div id="box">
{if($user_info['id']==$login_user['id'])}
<ul id="list">
<li><a href="{$this->urlCreate('change','signature')}">修改签名</a></li>
<li><a href="{$this->urlCreate('change','infomation')}">修改资料</a></li>
<li><a href="{$this->urlCreate('change','passwd')}">修改密码</a></li>
<li><a href="{$this->urlCreate('user','logout')}">退出网站</a></li>
</ul>

{else}
<ul id="list">
<li><a href="{$this->urlCreate('friend','make')}">加好友</a></li>
<li><a href="{$this->urlCreate('focus','make')}">关注Ta</a></li>
<li><a href="{$this->urlCreate('message','send')}">发送消息</a></li>
</ul>



{/if}
</div>
{else}
<div id="tip">该会员不存在</div>
{/if}
</div>

{include 'common/footer.html'}
</body>
</html>